package com.venue.ui.controller;

import com.jfinal.kit.HttpKit;
import com.jfinal.kit.PathKit;
import com.jfinal.kit.PropKit;
import com.venue.ui.controller.bean.User;
import com.venue.ui.controller.request.ReqLogin;
import com.venue.ui.controller.response.ReturnData;
import com.venue.ui.util.JsonUtil;

public class UserController extends BaseController {

	public void login() {
		String name = getPara("name");
		String pwd = getPara("pwd");

		String ip = PropKit.get("ip");

		ReqLogin req = new ReqLogin();
		req.setUser(name);
		req.setPwd(pwd);

		String data = JsonUtil.toJson(req);
		String rsp = HttpKit.post(ip + "user/login", data);
		
		
	}
}
